﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Test_for_IExecutable
{
    class TaskManager
    {
        private List<IExecutable> exList;

         public TaskManager (List<IExecutable> list)
        {
            this.exList = list;
        }

        public void Run()
        {
            foreach (IExecutable ie in exList)
                ie.Execute();

        }

    }
}
